function loadCheck(id){
			$.ajax({
//				url : "http://localhost/front/trol/audit",
				url:Server +"/front/trol/audit",
				data : {
					"id" : id,
				},
				type : "GET",
				dataType : "json",
				success : function(data) {
						$("#username").val(data.username);
						if(data.unitName != undefined)
							$("#unitName").val(data.unitName);
						$("#realname").val(data.realname);
						$("#unitName").val(data.unitName);
						$("#phone").val(data.phone);
						$("#idCard").val(data.idCard);
						$("#createTime").val(data.createTime);
						if(data.checkResult==1){
				
							var htm = '<div class="pass"  id="passCheck">通过审核</div><div class="pass" id="falseCheck" style="margin-left:30px;">拒绝审核</div>'
							$("#Choosecheck").html(htm);
							
							$("#passCheck").click(function(){
								var checkResult = 0;
								checkPassApplication(id,checkResult);
							});
							$("#falseCheck").click(function(){
								var checkResult = 2;
								checkFalseApplication(id,checkResult);
							});

						}
						else {
							
						}
				}
	});
}

function issue_list() {
	$(location).attr('href', 'ins30');
}

function checkApp(id,checkResult){
	$.ajax({
//		url : "http://localhost/rel/ssi/updateCheckResult",
		url : Server + "/rel/ssi/updateCheckResult",
		data : {
			"id" : id,
			"checkResult" : checkResult
		},
		type : "POST",
		dataType : "json",
		success : function(data) {
			
		}
	});
}

function checkPassApplication(id,checkResult) {
	var msg = "您确定要通过审核吗？\n\n请确认！";
	if (confirm(msg) == true) {
		checkApp(id,checkResult);
		window.location.reload();
		return true;
	} else {
		return false;
	}
}
function checkFalseApplication(id,checkResult) {
	var msg = "您确定要拒绝审核吗？\n\n请确认！";
	if (confirm(msg) == true) {
		checkApp(id,checkResult);
		window.location.reload();
	} else {
		return false;
	}
}